package com.ruoyi.sgsc.mapper;

import java.util.List;
import com.ruoyi.sgsc.domain.orderdetails;
import com.ruoyi.sgsc.domain.orderlist;

/**
 * 订单详情Mapper接口
 * 
 * @author wy
 * @date 2024-09-29
 */
public interface orderdetailsMapper 
{
    /**
     * 查询订单详情
     * 
     * @param orderDetailId 订单详情主键
     * @return 订单详情
     */
    public orderdetails selectorderdetailsByOrderDetailId(Long orderDetailId);


    /***
     * 根据userId获取订单列表
     * @param userId
     * @return
     */
    public List<orderlist> selectorderdetailsByuserId(Long userId);


    /***
     * 根据orderId获取订单列表
     * @param orderId
     * @return
     */
    public List<orderlist> selectorderdetailsByOrderId(Long orderId);



    /**
     * 查询订单详情列表
     * 
     * @param orderdetails 订单详情
     * @return 订单详情集合
     */
    public List<orderdetails> selectorderdetailsList(orderdetails orderdetails);


    /**
     * 新增订单详情
     * 
     * @param orderdetails 订单详情
     * @return 结果
     */
    public int insertorderdetails(orderdetails orderdetails);



    /**
     * 修改订单详情
     * 
     * @param orderdetails 订单详情
     * @return 结果
     */
    public int updateorderdetails(orderdetails orderdetails);


    /**
     * 删除订单详情
     * 
     * @param orderDetailId 订单详情主键
     * @return 结果
     */
    public int deleteorderdetailsByOrderDetailId(Long orderDetailId);


    /**
     * 批量删除订单详情
     * 
     * @param orderDetailIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteorderdetailsByOrderDetailIds(Long[] orderDetailIds);
}
